﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000A37 RID: 2615
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class LEGLIFDBIBE : IMessage<LEGLIFDBIBE>, IMessage, IEquatable<LEGLIFDBIBE>, IDeepCloneable<LEGLIFDBIBE>, IBufferMessage
	{
		// Token: 0x17002101 RID: 8449
		// (get) Token: 0x06007516 RID: 29974 RVA: 0x00138834 File Offset: 0x00136A34
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<LEGLIFDBIBE> Parser
		{
			get
			{
				return LEGLIFDBIBE._parser;
			}
		}

		// Token: 0x17002102 RID: 8450
		// (get) Token: 0x06007517 RID: 29975 RVA: 0x0013883B File Offset: 0x00136A3B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return LEGLIFDBIBEReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17002103 RID: 8451
		// (get) Token: 0x06007518 RID: 29976 RVA: 0x0013884D File Offset: 0x00136A4D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return LEGLIFDBIBE.Descriptor;
			}
		}

		// Token: 0x06007519 RID: 29977 RVA: 0x00138854 File Offset: 0x00136A54
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public LEGLIFDBIBE()
		{
		}

		// Token: 0x0600751A RID: 29978 RVA: 0x0013885C File Offset: 0x00136A5C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public LEGLIFDBIBE(LEGLIFDBIBE other) : this()
		{
			this.avatarId_ = other.avatarId_;
			this.avatarType_ = other.avatarType_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600751B RID: 29979 RVA: 0x0013888D File Offset: 0x00136A8D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public LEGLIFDBIBE Clone()
		{
			return new LEGLIFDBIBE(this);
		}

		// Token: 0x17002104 RID: 8452
		// (get) Token: 0x0600751C RID: 29980 RVA: 0x00138895 File Offset: 0x00136A95
		// (set) Token: 0x0600751D RID: 29981 RVA: 0x0013889D File Offset: 0x00136A9D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint AvatarId
		{
			get
			{
				return this.avatarId_;
			}
			set
			{
				this.avatarId_ = value;
			}
		}

		// Token: 0x17002105 RID: 8453
		// (get) Token: 0x0600751E RID: 29982 RVA: 0x001388A6 File Offset: 0x00136AA6
		// (set) Token: 0x0600751F RID: 29983 RVA: 0x001388AE File Offset: 0x00136AAE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint AvatarType
		{
			get
			{
				return this.avatarType_;
			}
			set
			{
				this.avatarType_ = value;
			}
		}

		// Token: 0x06007520 RID: 29984 RVA: 0x001388B7 File Offset: 0x00136AB7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as LEGLIFDBIBE);
		}

		// Token: 0x06007521 RID: 29985 RVA: 0x001388C5 File Offset: 0x00136AC5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(LEGLIFDBIBE other)
		{
			return other != null && (other == this || (this.AvatarId == other.AvatarId && this.AvatarType == other.AvatarType && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06007522 RID: 29986 RVA: 0x00138904 File Offset: 0x00136B04
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.AvatarId != 0U)
			{
				num ^= this.AvatarId.GetHashCode();
			}
			if (this.AvatarType != 0U)
			{
				num ^= this.AvatarType.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06007523 RID: 29987 RVA: 0x0013895C File Offset: 0x00136B5C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06007524 RID: 29988 RVA: 0x00138964 File Offset: 0x00136B64
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06007525 RID: 29989 RVA: 0x00138970 File Offset: 0x00136B70
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.AvatarId != 0U)
			{
				output.WriteRawTag(16);
				output.WriteUInt32(this.AvatarId);
			}
			if (this.AvatarType != 0U)
			{
				output.WriteRawTag(96);
				output.WriteUInt32(this.AvatarType);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06007526 RID: 29990 RVA: 0x001389CC File Offset: 0x00136BCC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.AvatarId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.AvatarId);
			}
			if (this.AvatarType != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.AvatarType);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06007527 RID: 29991 RVA: 0x00138A24 File Offset: 0x00136C24
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(LEGLIFDBIBE other)
		{
			if (other == null)
			{
				return;
			}
			if (other.AvatarId != 0U)
			{
				this.AvatarId = other.AvatarId;
			}
			if (other.AvatarType != 0U)
			{
				this.AvatarType = other.AvatarType;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06007528 RID: 29992 RVA: 0x00138A74 File Offset: 0x00136C74
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06007529 RID: 29993 RVA: 0x00138A80 File Offset: 0x00136C80
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 16U)
				{
					if (num != 96U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.AvatarType = input.ReadUInt32();
					}
				}
				else
				{
					this.AvatarId = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04002CA2 RID: 11426
		private static readonly MessageParser<LEGLIFDBIBE> _parser = new MessageParser<LEGLIFDBIBE>(() => new LEGLIFDBIBE());

		// Token: 0x04002CA3 RID: 11427
		private UnknownFieldSet _unknownFields;

		// Token: 0x04002CA4 RID: 11428
		public const int AvatarIdFieldNumber = 2;

		// Token: 0x04002CA5 RID: 11429
		private uint avatarId_;

		// Token: 0x04002CA6 RID: 11430
		public const int AvatarTypeFieldNumber = 12;

		// Token: 0x04002CA7 RID: 11431
		private uint avatarType_;
	}
}
